import {NgModule} from '@angular/core';
import {
  AutoCompleteModule, CalendarModule, CarouselModule, CheckboxModule, ConfirmDialogModule, DataGridModule, DataTableModule, DropdownModule,
  InputMaskModule,
  InputSwitchModule, InputTextareaModule, InputTextModule,
  MultiSelectModule,
  PaginatorModule,
  PanelModule,
  ProgressBarModule,
  RadioButtonModule,
  ScrollPanelModule, SelectButtonModule, SidebarModule, SpinnerModule, SplitButtonModule, ToggleButtonModule
} from 'primeng/primeng';
import {DialogModule} from 'primeng/dialog';
import {TableModule} from 'primeng/table';
import {TreeModule} from 'primeng/tree';
import {MenuModule} from 'primeng/menu';
import {ListboxModule} from 'primeng/listbox';
import {GrowlModule} from 'primeng/growl';
import {BlockUIModule} from 'primeng/blockui';
import {ButtonModule} from 'primeng/button';
import {MessageModule} from 'primeng/message';
import {RatingModule} from 'primeng/rating';

const dataCom = [ DataTableModule, TableModule, PaginatorModule, DataGridModule, TreeModule];

const panelCom = [ PanelModule, ScrollPanelModule, DialogModule , MenuModule, CarouselModule];

const inputCom = [ CalendarModule, AutoCompleteModule, DropdownModule, CheckboxModule, RadioButtonModule, InputTextModule,
  InputTextareaModule, InputMaskModule, ButtonModule, RatingModule,
SelectButtonModule, ToggleButtonModule, MultiSelectModule, SplitButtonModule, SidebarModule, SpinnerModule, ListboxModule ];

const otherCom = [ InputSwitchModule, ProgressBarModule, BlockUIModule ];

const msgCom = [ GrowlModule, ConfirmDialogModule, MessageModule ];

@NgModule({
  imports: [dataCom, panelCom , otherCom , inputCom, msgCom],
  exports: [dataCom, panelCom , otherCom , inputCom, msgCom]
})
export class PrimeNgModule { }
